package com.xbongbong.pro.aiassistant.service;

import com.xbongbong.pro.domain.entity.AiAssistantEntity;
import com.xbongbong.pro.domain.entity.AiAssistantHistoryEntity;
import com.xbongbong.pro.smartsettings.pojo.SsExecutorPojo;
import com.xbongbong.pro.smartsettings.pojo.SsMessageMergePojo;
import com.xbongbong.pro.smartsettings.pojo.dto.SmartStrategyRabbitMqDTO;

import java.util.List;

/**
 * @description: 智能助手--消息聚合
 * @Author: hongxiao
 * @date: 2019-05-14 21:19
 * @since v1.0
 */
public interface SsMessageMergeService {
    /**
     * 消息数据聚合
     * @param rabbitMqDTO 智能助手列表
     * @param executorList 执行人列表
     * @return
     * @throws
     * @author hongxiao
     * @date 2019-05-17 19:43
     * @since v1.0
     * @version v1.0
     */
    List<SsMessageMergePojo> getMessageMerge(SmartStrategyRabbitMqDTO rabbitMqDTO, List<SsExecutorPojo> executorList);

    /**
     * 消息数据聚合
     * @param aiAssistantEntity 智能助手
     * @param executorList 执行人列表
     * @param addList 插入的历史记录
     * @param updateList 要更新的历史记录
     * @return
     * @throws
     * @author 吴峰
     * @date 2020/9/22 9:49
     * @since v1.0
     * @version v1.0
     */
    List<SsMessageMergePojo> getMessageMergeList(List<SsExecutorPojo> executorList, AiAssistantEntity aiAssistantEntity, List<AiAssistantHistoryEntity> addList, List<AiAssistantHistoryEntity> updateList);
}
